Auto merge of #4259 - matklad:conventions, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 11 Jul 2017 19:13:22 +0000 (19:13 +0000)
committerbors <bors@rust-lang.org>
Tue, 11 Jul 2017 19:13:22 +0000 (19:13 +0000)
commit1566c92b5d28e435613918e59dc94755f99d73b1
tree0b6cd6c186c51de8949ee3857359dff656870c60
parent2b8de5dd7fb4399ef792b4dd59d53d3649174094
parent71e66295f9318fc9471ae5828f33a0da94ba2ea5
Auto merge of #4259 - matklad:conventions, r=alexcrichton

Conventions

r? @alexcrichton

I'd love to refactor our handing of inferring targets by convention, because it is super difficult to understand, and quite probably contains a couple of unintended/undocumented conventions (like `src/foo.rs` being a binary `foo` if there's no library in the package).

As a first step, I've just moved all the logic (600 loc) to a separate file from the `toml.rs` file, which used to be just **huge** (we even use in in IntelliJ Rust for performance testing :) ), and now it is "only" just above 1kloc :)